var formOptions ={
  inline: true,
  submitBtnText: '搜索',
  forms: [
    { prop: 'username', label: '用户名' },
    { prop: 'lgname', label: '中文拼音' },
    { prop: 'state', label: '状态', itemType: 'select',
      options: [
        { value: 0, label: '正常' },
        { value: 1, label: '离职' },
        { value: 2, label: '待离职' }
        ]
    },
    ],
  submitHandler:'query',
};

var columns = [
  { prop: 'lgname', label: '账号', width: 140 },
  { prop: 'username', label: '用户名', width: 140 },
  { prop: 'phone', label: '电话', minWidth: 180 },
  { prop: 'email', label: '邮箱', minWidth: 180 },
  { prop: 'idcard', label: '身份证', minWidth: 180 },
  { prop: 'role', label: '职位', minWidth: 180 },
  { prop: 'dept', label: '部门', minWidth: 180 },
  { prop: 'state', label: '状态', width: 80,
    render: row => {
      const { sex } = row
    return sex === 0 ? '正常' : sex === 1 ? '离职' : '待离职'
  }
},
  { prop: 'created_at', label: '创建时间', minWidth: 180 },
];

export  {
  formOptions,
  columns,
}
